package com.ruyuan.eshop.diplomacy.domain.dao;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * SQL构建DAO
 *
 * @author zhonghuashishan
 */
@Mapper
public interface DiplomacyDAO {
    /**
     * 添加
     *
     * @param sql
     * @return int
     * @author zhonghuashishan
     */
    int insert(String sql);

    /**
     * 更新
     *
     * @param sql
     * @return int
     * @author zhonghuashishan
     */
    int update(String sql);

    /**
     * 删除
     *
     * @param sql
     * @return int
     * @author zhonghuashishan
     */
    int delete(String sql);

    /**
     * 查询
     *
     * @param sql
     * @return java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     * @author zhonghuashishan
     */
    List<Map<String,Object>> select(String sql);
}
